<?php
/**
 *  企业信息控制器
 */
namespace app\msgapi\controller;

use app\msgapi\service\HscallbackService;

class Hscallback
{
    private HscallbackService $service;
    public function __construct(HscallbackService $service)
    {
        $this->service = $service;
    }

    /**通讯录回调接口
     * @return \think\response\Json|void
     */
    public function getContactEvent()
    {
        return $this->service->getContactEvent();
    }

    /**客户信息\群组回调
     * @return \think\response\Json|void
     * @throws \Throwable
     * @throws \think\Exception
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getCustomerEvent()
    {
        return $this->service->getCustomerEvent();
    }

    /**会话存档拉取回调
     * @return \think\response\Json|void
     */
    public function callbackPullMsg()
    {
        return $this->service->callbackPullMsg();
    }

}